package com.gitee.xmhzzz.component.tcp.server.config;


import java.util.Map;

public class TCPNettyServerProperties implements NettyServerProperties{

    private Integer serverHttpPort;

    private String serverId;
    private Integer serverPort = 5006;
    private Integer soBacklog = 1024;
    private Boolean soKeepalive = true;
    private Boolean tcpNoDelay = true;
    private Integer soTimeout = 30000;
    private Integer connectTimeoutMillis = 30000;

    private Map<String,String> appIdMap;

    @Override
    public Integer getPort() {
        return this.serverPort;
    }


    @Override
    public String getAppSecret(String appId) {
        return this.appIdMap.get(appId);
    }


}
